<?php
declare (strict_types=1);

namespace app\exam\service;

use app\common\service\BaseService;
use think\annotation\Inject;
use think\facade\Request;
use think\Response;

/**
 * 专项服务类
 */
class PersonalRecord extends BaseService
{
    /**
     * @Inject()
     * @var \app\exam\logic\PersonalRecord
     */
    protected $logic;

    /**
     * getPersonalRecord
     * Author: 亓官雨树 <lucky.max@foxmail.com>
     * Date: 24/06/07
     *
     * @return Response
     */
    public function getPersonalRecord()
    {
        $cate = Request::get('category/d');
        $data = $this->logic->getPersonalRecord($cate);

        return $this->parseToData($data, 1, '获取成功');
    }
}
